﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'DeleteDetallePedidoByPedido')
	BEGIN
		DROP  Procedure  DeleteDetallePedidoByPedido
	END

GO

CREATE Procedure DeleteDetallePedidoByPedido
	@idPedido int
AS

DELETE FROM DetallePedido WHERE IdPedido = @idPedido

GO


GRANT EXEC ON DeleteDetallePedidoByPedido TO PUBLIC

GO


